﻿using Bot.Domain.Entities;
using Comm100.Framework.Domain.Specifications;
using System;
using System.Collections.Generic;
using System.Text;

namespace Bot.Domain.Specifications
{
    public class IntentQuestionFilterSpecification : BaseSpecification<IntentQuestion>
    {
        public IntentQuestionFilterSpecification(List<Guid> intentIds)
            : base(i => intentIds.Contains(i.IntentId) && i.IsDeleted == false)
        {

        }
        public IntentQuestionFilterSpecification(Guid intentId)
            : base(i => i.IntentId == intentId && i.IsDeleted ==false)
        {

        }
        public IntentQuestionFilterSpecification(Guid intentId, List<Guid> ids)
            : base(i => i.IntentId == intentId && i.IsDeleted == false && ids.Contains(i.Id))
        {

        }
    }
}
